import { RouteRecordRaw } from 'vue-router';
import CimupLayout from '@/layout/cimup.vue';

const routes: RouteRecordRaw = {
  path: '/preview',
  name: 'preview',
  meta: {
    path: '/preview',
    title: '预览',
    layout: CimupLayout,
    hidden: true,
  },
  component: () => import('@/layout/empty.vue'),
  children: [
    {
      path: 'scene/:id',
      name: 'previewScene',
      meta: {
        path: '/preview/scene',
        title: '场景预览',
      },
      component: () => import('@/views/preview/scene/index.vue'),
    },
  ],
};

export default routes;
